﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AFSharedLibrary;

namespace UIDesigner.SurfaceProperties.Operations
{
    public class ResetProperties : IPropertyGroup
    {
        private ResetOptions m_eResetOptions;
        protected ConfirmOptions m_objConfirmOptions;

        public SurfaceButton Button
        {
            get
            {
                if (m_eResetOptions == ResetOptions.ResetButton)
                {
                    return SurfaceButton.Reset;
                }
                else
                {
                    return SurfaceButton.None;
                }
            }
        }

        public ResetOptions ResetOptions
        {
            get { return m_eResetOptions; }
            set { m_eResetOptions = value; }
        }

        public ConfirmOptions ConfirmOptions
        {
            get { return m_objConfirmOptions; }
            set { m_objConfirmOptions = value; }
        }

        public ResetProperties()
        {
        }

        public object Clone()
        {
            ResetProperties objProperties = new ResetProperties();

            objProperties.m_eResetOptions = m_eResetOptions;

            if (m_objConfirmOptions != null)
            {
                objProperties.ConfirmOptions = (ConfirmOptions)m_objConfirmOptions.Clone();
            }

            return m_objConfirmOptions;
        }
    }
}
